<h1 class="title"><%= @project.name %></h1>

<table class="tabular details meta" style="width: 20%">
 <tr class="header">
  <td>Basics</td>
  <td></td>
 <tr class="even_row">
  <td><strong>Name</strong></td>
  <td><%= @project.name %></td>
 </tr>
 <tr>
  <td><strong>Client</strong></td>
  <td><%= @project.client_name %></td>
 </tr>
 <tr class="even_row">
  <td><strong>Status</strong></td>
  <td><% if @project.is_open == 1 %>Open<% else %>Closed<% end %></td>
 </tr>
</table>

<div id="project_description"><%= to_html(@project.description) %></div>

<% odd = 0 %>
<div id="comments">
  <% for comment in @comments %>
    <div class="comment<% if odd == 0 %> even_row<% odd = 1 %><% else %> odd_row<% odd = 0 %><% end %>">
      <div class="added_by"><%= link_to comment.user.username, {:controller => 'user', :action => 'show', :id => comment.user_fk} %></div>
      <div class="added"><%= comment.added.strftime('%a, %B %d %Y, %H:%M:%S') %></div>
      <div class="content"><%= to_html(comment.content) %></div>
     </div>
  <% end %>
</div>
